package org.ghost.akka.common.em;

public enum ResponseEnum {
    JOB_SUCCESS(200, "job success"),
    SERVICE_UNAVAILABLE(500, "service unavailable"),
    JOB_ERROR(501, "do job error,more detail see log"),
    TIME_OUT(502, "time out");

    private final int code;
    private final String text;

    ResponseEnum(int code, String text) {
        this.code = code;
        this.text = text;
    }

    @Override
    public String toString() {
        return "ResponseEnum{" +
                "code=" + code +
                ", text='" + text + '\'' +
                '}';
    }
}
